﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="6_Register.aspx.cs" Inherits="_6_Register" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .error
        {
        	background:red;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table>
        <tr><td>
            <asp:Label ID="Label1" runat="server" Text="用户名" 
                AssociatedControlID="txtUserName"></asp:Label></td><td>
                <asp:TextBox ID="txtUserName" runat="server" AutoPostBack="True" 
                    ontextchanged="txtUserName_TextChanged"></asp:TextBox><asp:Label ID="UserNameErrorMessage" runat="server"
                        Text="Label" Visible="False" CssClass="error"></asp:Label></td></tr>
        <tr><td>
            <asp:Label ID="Label2" runat="server" Text="密码" 
                AssociatedControlID="txtPassword"></asp:Label></td><td>
                <asp:TextBox ID="txtPassword" runat="server" AutoPostBack="True"></asp:TextBox><asp:Label
                    ID="PasswordErrorMessage" runat="server" Text="Label" Visible="False" CssClass="error"></asp:Label></td></tr>
        <tr><td>
            <asp:Label ID="Label3" runat="server" Text="验证码" AssociatedControlID="txtOrder"></asp:Label></td><td>
                <asp:TextBox ID="txtOrder" runat="server" AutoPostBack="True"></asp:TextBox></td></tr>
        <tr><td>
            <asp:Button ID="btnRegister" runat="server" Text="登陆" /></td><td>
                <asp:Button ID="Button2" runat="server" Text="注册" /></td></tr>
    </table>
    </div>
    </form>
</body>
</html>
